/*
 * TypeEnum.cpp
 *
 *  Created on: Aug 8, 2012
 *      Author: calle
 */

#include <AbsSyn/TypeEnum.h>

const TypeEnum TypeEnum::BoolT("BoolType");
const TypeEnum TypeEnum::IntT("IntType");
const TypeEnum TypeEnum::DoubleT("DoubleType");

TypeEnum::TypeEnum(const char* image):
	Enumeration<TypeEnum>(image)
{

}

TypeEnum::~TypeEnum() {

}


ExpressionType TypeEnum::getConstantExpressionType(TypeEnum type)
{
	ExpressionType ret = ExpressionType::BOOL_EXP;
	if( type == TypeEnum::IntT)
	{
		ret = ExpressionType::INT_EXP;
	}else if( type == TypeEnum::DoubleT )
	{
		ret = ExpressionType::DOUBLE_EXP;
	}
	return ret;
}



